package com.qf.config;

import org.apache.shiro.authz.UnauthorizedException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @author 千峰教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@ControllerAdvice
public class ExceptionAdvice {

    @ExceptionHandler({
            UnauthorizedException.class
    })
    public String unauthorizedUrl(){
        return "/unauthorizedUrl.html";
    }
}